import Vue from 'vue'
import App from './App.vue'

Vue.config.productionTip = false

import VueRouter from 'vue-router'
//导入
Vue.use(VueRouter)
//使用
import discovery from './content/discovery.vue'
import playlist from './content/playlist.vue'
import songs from './content/songs.vue'
import mvs from './content/mvs.vue'
import result from './content/result.vue'
//导入 需要通过路由管理的组件 
let router = new VueRouter({
  //配置地址 和组件的对应关系
  routes:[
    //地址
   {
      path:"/discovery",
    //组件
      component:discovery,
  },{
    path:"/playlist",

    component:playlist,

  },{
    path:"/songs",

    component:songs,
  },{
    path:"/mvs",

    component:mvs
  }, { 
    path:"/",
    //组件
    component:discovery,
  },{
    path:"/result",
    component:result
  }
]
})
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
Vue.use(ElementUI)
//创建路由
new Vue({
  render: h => h(App),

  router//挂载
}).$mount('#app')
